import { AxiosResponse } from "axios"
import http from '../utils/request'

//列表
export const travel = (params: any): Promise<AxiosResponse<any>> => {
  return http.get("/travel/list", params)
}
//部门列表
export const departmentlist = (): Promise<AxiosResponse<any>> => {
  return http.get("/department/list")
}
//地址
export const address = (): Promise<AxiosResponse<any>> => {
  return http.get("/address/list")
}
//添加
export const addtravel = (aa: any): Promise<AxiosResponse<any>> => {
  return http.post("/travel/add", aa)
}
